package com.novunda.license.core;

import java.io.Serializable;

/**
 * 证书内容
 *
 * @author linfeng
 * @since 2016/10/12.
 */
public class LicenseContent implements Serializable {

    private static final long serialVersionUID = -8408750502668202500L;

    private String holder;
    private String issuer;

    private String subject;

    private Long issued;//签发时间毫秒数
    private Long notBefore;//不能在此之前，毫秒数
    private Long notAfter;//不能在此之后，毫秒数
    private String consumerType;
    private int consumerAmount = 1;//限制用户数量
    private String info;
    private Object extra;

    public String getHolder() {
        return holder;
    }

    public void setHolder(String holder) {
        this.holder = holder;
    }

    public String getIssuer() {
        return issuer;
    }

    public void setIssuer(String issuer) {
        this.issuer = issuer;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public Long getIssued() {
        return issued;
    }

    public void setIssued(Long issued) {
        this.issued = issued;
    }

    public Long getNotBefore() {
        return notBefore;
    }

    public void setNotBefore(Long notBefore) {
        this.notBefore = notBefore;
    }

    public Long getNotAfter() {
        return notAfter;
    }

    public void setNotAfter(Long notAfter) {
        this.notAfter = notAfter;
    }

    public String getConsumerType() {
        return consumerType;
    }

    public void setConsumerType(String consumerType) {
        this.consumerType = consumerType;
    }

    public int getConsumerAmount() {
        return consumerAmount;
    }

    public void setConsumerAmount(int consumerAmount) {
        this.consumerAmount = consumerAmount;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Object getExtra() {
        return extra;
    }

    public void setExtra(Object extra) {
        this.extra = extra;
    }
}
